<%@ page import="com.ecomm.security.functiontree.FunctionInfo,com.ecomm.util.Function"%>
<%@page contentType="text/html;charset=utf-8"%>
<%@include file="/include/currentuserinfo.jsp" %>
<%
    String id=request.getParameter("functionid");
    String functionUrl = request.getParameter("functionUrl");
    FunctionInfo info=null;
    if(id!=null)
    {
        info=sessionmng.getFunctionInfoByID(id);
        if(info.getIsleaf()==1)                   //如果是叶子节点
        {
            response.sendRedirect(info.getPath());
        }
    }
    boolean bAccreditLogin = session.getAttribute("originalLoginUserId") != null && session.getAttribute("originalLoginPassword") != null;

    String fowardUrl = null;
    if(!bAccreditLogin){
        if (!"".equals(Function.normalizeString(functionUrl)))
        {
            fowardUrl = ctxpath+"/themes/newstyle/frame/welcome.jsp?functionid="+id+"&functionUrl="+functionUrl;
        }
        else
        {
            fowardUrl = ctxpath+"/themes/newstyle/frame/welcome.jsp?functionid="+id;
        }
    }else{
        fowardUrl = ctxpath+"/oa/accredit/accreditwelcome.jsp";
    }
%>

<html>
<head>
<title>newstyle风格-outlookbar的主布局</title>
<meta content="text/html; charset=utf-8" http-equiv=content-type>
</head>
<script>
    var folder = -1;
</script>
<frameset rows="*" cols="96,*" framespacing="1" frameborder="yes" border="1" bordercolor="buttonface" name="frmMain">
  <frame src="<%=ctxpath%>/themes/newstyle/frame/outlookbar.jsp?functionid=<%=id%>" name="frmleft"  scrolling="no" noresize>
  <frame src="<%=fowardUrl%>" name="frmRight" id="frmRight">
</frameset>
<noframes> 
<body bgcolor=ffffff>
您的浏览器不支持iframe方式显示，请把浏览器升级到ie5.0以上。
</body>
</noframes>
</html>
